<template>
  <el-dialog
    title="绑定省市区域"
    :visible.sync="dialogVisible"
    width="650px"
    class="bind-area"
  >
    <el-form ref="form" :model="form" label-width="180px">
      <el-form-item label="请选择：">
        <el-select v-model="form.provence" size="small" class="small-select">
          <el-option label="省份" value="0"></el-option>
        </el-select>
        <el-select v-model="form.shi" size="small" class="small-select">
          <el-option label="地市级" value="0"></el-option>
        </el-select>
        <el-select v-model="form.area" size="small" class="small-select">
          <el-option label="市、区、县" value="0"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="是否包含下级车组：">
        <el-radio v-model="form.include" label="1">是</el-radio>
        <el-radio v-model="form.include" label="2">否</el-radio>
      </el-form-item>
      <el-form-item label="已绑定车辆(绑定时有效)：">
        <el-radio v-model="form.cover" label="1">覆盖</el-radio>
        <el-radio v-model="form.cover" label="2">不覆盖</el-radio>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer" style="text-align: center;">
      <!-- <el-button @click="dialogVisible = false">取 消</el-button> -->
      <el-button type="primary" @click="dialogVisible = false" size="mini">确定绑定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      form: {
        provence: "0",
        shi: "0",
        area: "0",
        include: "1",
        cover: "1"
      }
    };
  },

  methods: {
    show() {
      this.dialogVisible = !this.dialogVisible;
    }
  }
};
</script>

<style lang="scss">
.bind-area {
  .el-dialog__header {
    background-color: #479de6 !important;

    .el-dialog__title,
    .el-dialog__close {
      color: #fff;
    }
  }

  .el-dialog__body {
    padding: 10px;
  }

  .el-dialog__footer {
    text-align: center;
  }

  .small-select {
    display: inline-block;
    width: 120px;
    margin-right: 10px;
  }
}
</style>
